{% extends 'base.html' %}
{% block main %}

    <div class="container">
    <h1>{{ project.project }}-{{ project.env }}发布任务列表</h1>
    <div>
    <a style="margin: 10px 0;" class="btn btn-primary" href='/addtask/{{ project.id }}'>添加</a>
    </div>
    <table class="table table-bordered">
    <thead>
    <tr>
        <th>ID</th>
        <th>UID</th>
        <th>版本描述</th>
        <th>状态</th>
         <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {% for row  in tasklist%}
    <tr>
        <th>{{ row.id }}</th>
        <th>{{ row.uid }}</th>
        <th>{{ row.versioninfo }}</th>
        <th>{{ row.status }}</th>
        <th><a href='/takeinfo/{{ row.id }}'>发布</a>
        </th>
    </tr>
    {% endfor %}
    </tbody>
    </table>
    </div>
{% endblock %}